import 'package:flutter/material.dart';

class FullWidthButton extends StatelessWidget {
  final VoidCallback? onPressed;
  final String text;
  final TextStyle? textStyle;
  final OutlinedBorder shape;

  final bool strongPrompt;
  final double height;

  const FullWidthButton({
    Key? key,
    required this.onPressed,
    required this.text,
    this.textStyle,
    this.strongPrompt = true,
    this.height = 45,
    this.shape = const StadiumBorder(),
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: double.infinity,
      height: height,
      child: strongPrompt
          ? ElevatedButton(
              style: ElevatedButton.styleFrom(shape: shape),
              onPressed: onPressed,
              child: Text(text, style: textStyle),
            )
          : OutlinedButton(
              style: ElevatedButton.styleFrom(shape: shape),
              onPressed: onPressed,
              child: Text(text, style: textStyle),
            ),
    );
  }
}
